/*
 * To change this template, choose Tools | Templates and open the template in
 * the editor.
 */
package cn.eclass.entity;

import java.util.List;

/**
 *
 * @author fortruth
 */
public class CategoryEntity implements Entity {

    private int id;
    private String name;
    private int parentId;
    private String description;
    private CategoryEntity parent;
    private List<CategoryEntity> children;

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the parentId
     */
    public int getParentId() {
        return parentId;
    }

    /**
     * @param parentId the parentId to set
     */
    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the parent
     */
    public CategoryEntity getParent() {
        return parent;
    }

    /**
     * @param parent the parent to set
     */
    public void setParent(CategoryEntity parent) {
        this.parent = parent;
    }

    /**
     * @return the children
     */
    public List<CategoryEntity> getChildren() {
        return children;
    }

    /**
     * @param children the children to set
     */
    public void setChildren(List<CategoryEntity> children) {
        this.children = children;
    }
}
